home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
comm
/
telix351.zip
/
TELIX351.DAT
/
SIMPLE.DOC
< prev
next >
Wrap
Text File
|
1996-05-01
|
55KB
|
1,651 lines
T E L I X
────────────────────────────────────────────────────────────
SIMPLE Programming Manual
Copyright (C) 1986-96 deltaComm Development, Inc.
ALL RIGHTS RESERVED.
deltaComm Development, Inc.
P.O. Box 1185, Cary, NC 27512 USA
(919)-460-4556 / (919)-460-4531 fax / (919)-481-9399 BBS
Telix v3.5x - SIMPLE Programming COPYRIGHT ii
Copyright Notice
Telix is Copyright (c) 1986-1996 by deltaComm Development, Inc.
SIMPLE is Copyright (c) 1990-1996 by deltaComm Development, Inc.
This document is Copyright (c) 1990-1996 by deltaComm Development, Inc.
No parts of Telix or this document may be copied in part or in whole,
except as provided in the License in the following pages.
Disclaimer
deltaComm Development, Inc., makes no warranty of any kind, either
express or implied, including but not limited to implied warranties of
merchantability and fitness for a particular purpose, with respect to
this software and accompanying documentation.
IN NO EVENT SHALL DELTACOMM DEVELOPMENT, INC., BE LIABLE FOR ANY DAMAGES
(INCLUDING DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION,
LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING OUT OF THE
USE OF OR INABILITY TO USE THIS PROGRAM, EVEN IF DELTACOMM DEVELOPMENT,
INC., HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Trademarks
Telix is a trademark of deltaComm Development, Inc.
SIMPLE is a trademark of deltaComm Development, Inc.
SALT is a trademark of deltaComm Development, Inc.
Many product names found throughout this manual are trademarks of var-
ious companies.
Telix v3.5x - SALT Programming Contents iii
C O N T E N T S
1. The Telix SIMPLE Language........................................1
1.1 What Can Be Accomplished With Simple?.......................1
1.2 Comparing SIMPLE to SALT....................................1
1.3 Creating SIMPLE Scripts.....................................1
2. Syntax...........................................................3
3. Program Structure................................................5
3.1 .i.Variables................................................5
3.2 System Variables............................................5
4. Built-in Functions...............................................7
5. Program Control.................................................25
5.1 The Waitfor Command........................................25
5.2 The If Command.............................................26
5.3 The Whenever Loop..........................................30
6. Index...........................................................33
Telix v3.5x - SIMPLE Programming Introduction 1
1. The Telix SIMPLE Language
Telix has a built-in programming language called SALT (Script
Application Language for Telix). SALT is extremely powerful, and much
of that power is due to its semblance to the C programming language.
Along with that power comes a degree of difficulty, however. For
those not comfortable in a structured programming environment such as
SALT, a second scripting language, SIMPLE (Salt IMPLEmentation) is
also provided.
Simple takes a loosely structured program resembling a stream of
English sentences and transforms it into SALT for you. No programming
experience is necessary. Its SIMPLE!
1.1 What Can Be Accomplished With Simple?
──────────────────────────────────────────────────────────────────────
SIMPLE scripts can be used to automate logins to bulletin boards,
automate repetitive tasks such as mail transfers, or can be programmed
to watch for multiple strings, offering up the proper response to each
no matter the order in which they arrive. SIMPLE offers you much of
the power of SALT without the learning curve.
1.2 Comparing SIMPLE to SALT
──────────────────────────────────────────────────────────────────────
SALT's complexity allows it to do much more than SIMPLE can. For
example, the Host+ bulletin board that comes with Telix was written
primarily in SALT, but such a task would not be possible in SIMPLE.
SALT offers access to most screen-related functions in Telix; SIMPLE
offers only a pair of commands to place information on the screen.
SALT offers full color control; SIMPLE does not. Other differences
make SALT the preferable language for complex scripts.
If your copy of Telix is registered, the SIMPLE compiler, CSS can
leave a copy of the translated script on your hard drive in SALT
source format. SIMPLE is primarily a tool for helping you to master
SALT, and study of these translations are an excellent way to get
started.
1.3 Creating SIMPLE Scripts
──────────────────────────────────────────────────────────────────────
A SIMPLE script is basically a sequence of instructions for Telix to
follow, using a loosely defined syntax. You may use any text editor
to produce this script file, as long as its output is normal ASCII
text (this means that if you use your word processor, you must
Telix v3.5x - SIMPLE Programming Introduction 2
explicitly tell it to write out the file using ASCII format and not to
embed any special codes in the file). You may give any name you wish
to a SIMPLE script, although we recommend that you always use the
extension .SIM for clarity. For example, a script to log on to the
Telix Support BBS might be called TELIX.SIM.
Once you have written you script file and saved it to disk, it must be
compiled. The program CSS.EXE included with Telix reads your "source"
script and compiles it into a form which Telix can understand. The
compiled script can be loaded more quickly by Telix, and is also
smaller.
To compile a SIMPLE script file, type:
CSS <SIMPLEname> <SALTname>
<SIMPLEname> is the name of the script we are trying to compile, and
<SALTname> is the optional name of the SALT source file to create.
<SALTname> may only be used with registered versions of Telix.
CSS knows the naming conventions of Telix, and expects that an input
file ends in .SIM and an output file ends in .SLT, so you may simply
type:
CSS TELIX TELIX
If you do not supply an output name, CSS assumes the output name is
the input name followed by .SLC. The simplest way to compile
TELIX.SIM is:
CSS TELIX
The CS.EXE SALT compiler must be in the DOS path in order to use CSS.
When the script compiler finds an error in your source file, it will
abort the compile process and give you the line number on which the
error occurred, as well as the type of error. The error should then
be fixed and the source recompiled. This is repeated until the
compiled detects no more errors in your script file.
The compiled script can then be run in Telix using several methods.
It may be run using the 'Run Script' command, as a command line
parameter to Telix, as a linked script to a dialing directory entry
(i.e. automatically, when you connect to a system), or from another
script. The first three methods are described in the Telix manual,
while the last is described later in this manual.
Telix v3.5x -